Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Conversion Tool: TOS+ -> ROLL20 !?

Query: If I would like to create a conversion tool which would take a Pathfinder Character created in TOS+, and generate a ROLL20 compatible file, where would I find the information regarding the file format that ROLL20 requires for a Pathfinder compatible Character?
1518462964
vÍnce
Pro
Sheet Author
Sorry, what is TOS+? ;-(  The pathfinder companion script can parse text based stat blocks.  The parser was written specifically to handle piazo's prd, but you might be able to write something that can "pre-parse" text to match the prd's format.
TOS+ ( <a href="http://theonlysheet.com/homepage/" rel="nofollow">http://theonlysheet.com/homepage/</a> ) is a powerful character manager for 3.5/Pathfinder. So if TOS+ would export characters à la Paizo's PRD format, ROLL20 would be able to load them in?
1518468909
The Aaron
Pro
API Scripter
Anything like that would just about require the API.&nbsp; You might be able to do it with just a sheet worker, but it might be harder that way.
1518469276
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
If you can get it to output a json or xml file using the same format as hero Lab, you could use the herolab importer built into the sheet.
1518469565

Edited 1518469759
&lt;&lt;Anything like that would just about require the API. You might be able to do it with just a sheet worker, but it might be harder that way.&gt;&gt; I have no idea what that means... Perhaps I need to rephrase: Let's say I have a Pathfinder character, in a text format know only to me.&nbsp; How would I need to save (export) this data so that the ROLL20 application could make use of it? Please assume I am clueless about ROLL20... The only thing I know about ROLL20 is that it' a VTT. THANKS! RiTz21 P.S. I am asking because users of TOS+ have asked me to look into it. Thus, I am looking into it.
Scott C. said: If you can get it to output a json or xml file using the same format as hero Lab, you could use the herolab importer built into the sheet. I see - then I would have to hunt down the format use in that application... Is that the only solution? RiTz21
1518472284

Edited 1518472533
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Ah, ok, it sounds like you are actually the programmer behind TOS. Most of the advice so far has been assuming that you were simply a user. As for explaining what is involved in getting info into Roll20, here's a run down of what we're all talking about: Roll20 is a system agnostic VTT. A few different aspects of Roll20 have been brought up in this thread. Roll20 itself doesn't have a "file type" that it stores data in. At least not in so far as one that you can pull from/add to via an external program. What it does have are the following: Character Sheets Character sheets are the location in the vtt where the info for a given character is stored. This is a term that is used for two different, but related features. At it's most basic, these are simply an unordered group of attributes (aka strength) and abilities (aka your falchion attack). These basic character sheets are not that great looking, but are a great way to play if you play a game with a small community that has not created a there own Roll20 Character Sheet template. Character sheet templates are driven by html, css, and a limited version of javascript that we call sheetworkers. Sheetworkers can only interact with the sheet that triggers them, and they can't affect anything else in the VTT. The Neceros pathfinder sheet that Vince is one of the authors on is the most capable pathfinder sheet on Roll20. There is also a simple sheet that doesn't have as much automation in it. The Neceros sheet has quite a few advanced features, as well as a companion API script (explained below) that I wrote to give it even more. One of the advanced features of the Neceros sheet is that it has a built in importer for characters created in Hero Lab. This importer uses the XML file that hero lab is capable of creating from a character to create and set attributes on the character sheet. The sheetworker driving the importer can't interact directly with the XML file though, it requires JSON; so the XML first has to be converted to JSON. Once the file has been converted to JSON, the importer is able to perform it's function. So, what I meant in my suggestion was that if you can find out what keys and values are used in the JSON created from the hero lab XML, then you could have TOS create a JSON of a character that could then be copied into the hero lab importer on the roll20 sheet. AS an example (no idea if this is actually what a piece of the hero lab JSON looks like): If the hero lab section of the JSON for attributes looked like this: { "strength":10, "dexterity":10, "constitution":10, "intelligence":10, "wisdom":10, "charisma":10 } Your exported JSON would have to look just like that, so you couldn't do this for instance: { "str":10, "dex":10, "con":10, "int":10, "wis":10, "cha":10 } API Scripts This is the other solution that was suggested. While character sheet sheetworkers can only interact with a single instance of a character sheet at a time, API scripts are a broader subset of javascript that are run server side and can interact with many things within the VTT itself. There are limits to what they can interact with, and they cannot interact with anything external to Roll20 in any manner. There are a wide variety of API scripts covering everything from advanced audio controls to companion scripts that add additional features to a sheet that are beyond the scope of a sheetworker. In order to use API scripts, the creator of the game must be a currently active pro subscriber. A custom API script could certainly be written to parse whatever format you decided to export into from TOS, although then only Pro subscribers (or those playing in a pro subscriber's game) could use your export functionality.